package service

import (
	"seat-service/model"
	"seat-service/model/dto"
)

type Menu interface {
	GetButtonMenusByRoleAndType(role string) (menu []model.Menu, err error)
	GetMenus(Id uint) (menu model.Menu, err error)
	GetMenusByGrade(parentId uint) (menus []model.Menu, err error)
	PreloadChildren(menu *model.Menu)
	GetFirstMenus() (menus []*model.Menu, err error)
	GetRouter() (menus []*model.Menu, err error)
	UpdatesMenu(par *model.Menu) (err error)
	SaveMenu(par *model.Menu) (err error)
	DeleteMenu(id int) (err error)
	ChangeControlRole(ruleInformation dto.RuleID) (err error) //更改有该菜单权限的角色
}
